home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000128_jaltman@watsun.cc.columbia.edu_Fri May 11 09:40:41 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  43 lines

  1. Article: 12418 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!jaltman
  3. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Too many files for 'synchron.ksc'
  6. Date: 11 May 2001 11:17:37 GMT
  7. Organization: Columbia University
  8. Lines: 26
  9. Message-ID: <9dghoh$bng$1@newsmaster.cc.columbia.edu>
  10. References: <9dckn1$kgi$1@samba.rahul.net> <9dfc68$7k7$1@samba.rahul.net> <9dfclp$s6l$1@newsmaster.cc.columbia.edu> <9dfr64$agp$1@samba.rahul.net>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 989579857 12016 128.59.39.2 (11 May 2001 11:17:37 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 11 May 2001 11:17:37 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12418
  16.  
  17. In article <9dfr64$agp$1@samba.rahul.net>,  <dold@02.usenet.us.com> wrote:
  18. : Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  19. : : Yes.  Its the same code.  Increasing the value of SSPACE appears
  20. : : to be the correct setting.  I think we can handle changing the code
  21. : : to support a realloc() in a future release.
  22. : I added a loop at the first directory level.  I don't want to increase the
  23. : static buffer beyond 500K ;-)
  24. : I did add a realloc, with an initial malloc of 10k, wrapped like the
  25. : fgen(?) a little above.  That gathered all of the names, but gave me a core
  26. : dump during the transmission phase.  I could see from the debug that I had
  27. : called my realloc successfully at least once.  I should have verified that
  28. : it was called several times.
  29. : The 5m static did a complete transfer, but that's so ungraceful.
  30.  
  31. The reason for the core dump is because realloc() can return a block
  32. of memory that is different than the original source block.  If this
  33. happens then all of the work pointers which point within the original
  34. block need to be moved to refer to the new block.  Otherwise, you will
  35. get an exception.
  36.  
  37.  Jeffrey Altman * Sr.Software Designer      C-Kermit 7.1 Alpha available
  38.  The Kermit Project @ Columbia University   includes Secure Telnet and FTP
  39.  http://www.kermit-project.org/             using Kerberos, SRP, and 
  40.  kermit-support@kermit-project.org          OpenSSL.  SSH soon to follow.
  41.